﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true" CodeBehind="Kassa.aspx.cs" Inherits="WebShop_Project.Kassa" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <div id="wrapper2page">
        <div id="wrapperpage">
            <div class="kassa">
                <div class="userinformation">
                    <p>Förnamn:*</p>
                    <asp:TextBox ID="TextBoxFirstName" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBoxFirstName" ForeColor="Red" SetFocusOnError="True">Fyll i ditt förnamn!</asp:RequiredFieldValidator>
                    <br />
                    <br />
                    <p>Efternamn:*</p>
                    <asp:TextBox ID="TextBoxLastName" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TextBoxLastName" ForeColor="Red">Fyll i ditt efternamn!</asp:RequiredFieldValidator>
                    <br />
                    <br />
                    <p>Adress:*</p>
                    <asp:TextBox ID="TextBoxAddress" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TextBoxAddress" ForeColor="Red">Fyll i din adress!</asp:RequiredFieldValidator>
                    <br />
                    <br />
                    <p>Postnr:*</p>
                    <asp:TextBox ID="TextBoxZipCode" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="TextBoxZipCode" ForeColor="Red">Fyll i ditt postnr!</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="TextBoxZipCode" ErrorMessage="Har du skrivit in postnumret rätt?" ValidationExpression="^[0-9]{3}\s?[0-9]{2}$"></asp:RegularExpressionValidator>
                    <br />
                    <br />
                    <p>Ort:*</p>
                    <asp:TextBox ID="TextBoxCity" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="TextBoxCity" ForeColor="Red">Fyll i ort!</asp:RequiredFieldValidator>
                    <br />
                    <br />
                    <p>E-Post:*</p>
                    <asp:TextBox ID="TextBoxEmail" runat="server" Style="margin-top: 5px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="TextBoxEmail" ForeColor="Red">Fyll i din e-post!</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TextBoxEmail" ErrorMessage="Kontrollera din e-postadress!" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                    <br />
                    <br />
                    <asp:Label ID="LabelRequiredFieldsInfo" runat="server" ForeColor="Red" Text="* = Obligatoriska fält"></asp:Label>
                    <br />
                    <br />
                </div>
                <div class="orderRows">

                    <asp:GridView ID="GridViewCart" runat="server" AutoGenerateColumns="False" AutoGenerateDeleteButton="True" OnRowDeleting="GridViewCart_RowDeleting">
                        <Columns>
                            <asp:TemplateField HeaderText="ArtikelID">
                                <ItemTemplate>
                                    <p><%# Eval("Article.ArticleID") %></p>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Artikel">
                                <ItemTemplate>
                                    <p><%# Eval("Article.ArticleName") %></p>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Pris">
                                <ItemTemplate>
                                    <p><%# Eval("Article.UnitPrice") %></p>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Antal">
                                <ItemTemplate>
                                    <p><%# Eval("Quantity") %></p>
                                    <%--<asp:TextBox runat="server" ID="txtChangeQuantity" Text='<%# Eval("Quantity") %>'></asp:TextBox>--%>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>

                    </asp:GridView>


                    <br />

 


                </div>
                <asp:Button ID="ButtonSendOrder" runat="server" OnClick="ButtonSendOrder_Click" Text="Beställ" />
            </div>
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <p>
        <br />
    </p>
</asp:Content>

